<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>会员首页 - 社交平台</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome 图标 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    
    <style>
        :root {
            --primary: #5B7BDF;
            --primary-light: #E8EBFA;
            --secondary: #FF6B6B;
            --success: #4ECDC4;
            --warning: #FFCE54;
            --dark: #2C3E50;
            --light: #F8F9FA;
            --gray: #95A5A6;
            --border: #E1E4E8;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: #F5F7FA;
            color: var(--dark);
        }
        
        /* 顶部导航 */
        .top-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 56px;
            background-color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            z-index: 1000;
            border-bottom: 1px solid var(--border);
        }
        
        .nav-logo {
            font-size: 20px;
            font-weight: 700;
            color: var(--primary);
        }
        
        .nav-actions {
            display: flex;
            gap: 16px;
        }
        
        .nav-btn {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: none;
            border: none;
            color: var(--dark);
            font-size: 18px;
            position: relative;
        }
        
        .badge {
            position: absolute;
            top: 2px;
            right: 2px;
            width: 16px;
            height: 16px;
            background-color: var(--secondary);
            color: white;
            border-radius: 50%;
            font-size: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* 会员头部信息 */
        .member-header {
            padding-top: 56px;
            background: linear-gradient(135deg, var(--primary), #7C93E4);
            color: white;
            padding-bottom: 30px;
        }
        
        .profile-container {
            padding: 0 16px;
        }
        
        .profile-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 16px;
        }
        
        .avatar-container {
            position: relative;
        }
        
        .avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid white;
        }
        
        .vip-badge {
            position: absolute;
            bottom: 0;
            right: 0;
            background-color: var(--warning);
            color: var(--dark);
            width: 26px;
            height: 26px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            border: 2px solid white;
        }
        
        .profile-actions {
            display: flex;
            gap: 10px;
        }
        
        .btn-edit {
            background-color: rgba(255, 255, 255, 0.2);
            color: white;
            border: none;
            border-radius: 20px;
            padding: 6px 16px;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .btn-settings {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.2);
            color: white;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .profile-info {
            margin-bottom: 16px;
        }
        
        .member-name {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 4px;
        }
        
        .member-bio {
            font-size: 14px;
            opacity: 0.9;
            margin-bottom: 8px;
        }
        
        .member-stats {
            display: flex;
            gap: 24px;
        }
        
        .stat-item {
            text-align: center;
        }
        
        .stat-value {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 2px;
        }
        
        .stat-label {
            font-size: 12px;
            opacity: 0.8;
        }
        
        /* 会员特权标签 */
        .vip-privileges {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
            overflow-x: auto;
            padding-bottom: 8px;
        }
        
        .privilege-tag {
            background-color: rgba(255, 255, 255, 0.2);
            padding: 4px 12px;
            border-radius: 16px;
            font-size: 12px;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        /* 导航菜单 */
        .nav-tabs {
            background-color: white;
            display: flex;
            border-bottom: 1px solid var(--border);
            overflow-x: auto;
            padding: 0 16px;
        }
        
        .nav-tabs::-webkit-scrollbar {
            display: none;
        }
        
        .nav-tab {
            padding: 14px 16px;
            font-size: 16px;
            font-weight: 500;
            color: var(--gray);
            text-decoration: none;
            white-space: nowrap;
            position: relative;
        }
        
        .nav-tab.active {
            color: var(--primary);
        }
        
        .nav-tab.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: var(--primary);
            border-radius: 3px 3px 0 0;
        }
        
        /* 内容区域 */
        .content-container {
            padding: 16px;
        }
        
        /* 模块标题 */
        .section-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        
        .title-text {
            font-size: 17px;
            font-weight: 600;
        }
        
        .title-action {
            font-size: 14px;
            color: var(--primary);
            text-decoration: none;
        }
        
        /* 快捷功能区 */
        .quick-actions {
            background-color: white;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 16px;
        }
        
        .actions-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
        }
        
        .action-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            color: var(--dark);
        }
        
        .action-icon {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
        }
        
        .action-label {
            font-size: 13px;
            font-weight: 500;
        }
        
        /* 会员专享内容 */
        .vip-content {
            background-color: white;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 16px;
        }
        
        .content-banner {
            width: 100%;
            border-radius: 8px;
            margin-bottom: 16px;
            overflow: hidden;
        }
        
        .content-banner img {
            width: 100%;
            height: 120px;
            object-fit: cover;
        }
        
        .vip-benefits {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }
        
        .benefit-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px;
            background-color: var(--primary-light);
            border-radius: 8px;
        }
        
        .benefit-icon {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background-color: white;
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }
        
        .benefit-text {
            font-size: 13px;
        }
        
        /* 推荐关注 */
        .recommendations {
            background-color: white;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 16px;
        }
        
        .user-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
        }
        
        .user-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }
        
        .user-card-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .user-card-name {
            font-size: 14px;
            font-weight: 500;
            text-align: center;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            width: 100%;
        }
        
        .user-card-meta {
            font-size: 12px;
            color: var(--gray);
            text-align: center;
        }
        
        .follow-btn {
            margin-top: 4px;
            padding: 3px 12px;
            font-size: 12px;
            border-radius: 12px;
            background-color: var(--primary);
            color: white;
            border: none;
        }
        
        .follow-btn.following {
            background-color: var(--light);
            color: var(--gray);
        }
        
        /* 会员活动 */
        .events {
            background-color: white;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 16px;
        }
        
        .events-slider {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            padding-bottom: 8px;
        }
        
        .events-slider::-webkit-scrollbar {
            display: none;
        }
        
        .event-card {
            flex: 0 0 240px;
            border-radius: 8px;
            overflow: hidden;
            background-color: var(--light);
        }
        
        .event-image {
            width: 100%;
            height: 120px;
            object-fit: cover;
        }
        
        .event-info {
            padding: 12px;
        }
        
        .event-title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 4px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .event-date {
            font-size: 12px;
            color: var(--gray);
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        /* 底部导航 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 56px;
            background-color: white;
            display: flex;
            justify-content: space-around;
            align-items: center;
            border-top: 1px solid var(--border);
            z-index: 1000;
        }
        
        .bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            color: var(--gray);
            text-decoration: none;
            font-size: 10px;
            flex: 1;
        }
        
        .bottom-nav-item.active {
            color: var(--primary);
        }
        
        .bottom-nav-icon {
            font-size: 20px;
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="top-nav">
        <div class="nav-logo">社交圈</div>
        <div class="nav-actions">
            <button class="nav-btn">
                <i class="fas fa-search"></i>
            </button>
            <button class="nav-btn">
                <i class="far fa-bell"></i>
                <span class="badge">3</span>
            </button>
        </div>
    </div>
    
    <!-- 会员头部信息 -->
    <div class="member-header">
        <div class="profile-container">
            <div class="profile-header">
                <div class="avatar-container">
                    <img src="https://picsum.photos/id/64/200/200" alt="会员头像" class="avatar">
                    <div class="vip-badge">
                        <i class="fas fa-crown"></i>
                    </div>
                </div>
                <div class="profile-actions">
                    <button class="btn-edit">
                        <i class="fas fa-user-edit"></i> 编辑资料
                    </button>
                    <button class="btn-settings">
                        <i class="fas fa-cog"></i>
                    </button>
                </div>
            </div>
            
            <div class="profile-info">
                <div class="member-name">张小明</div>
                <div class="member-bio">热爱生活的旅行摄影师 | 高级会员</div>
                <div class="member-stats">
                    <div class="stat-item">
                        <div class="stat-value">248</div>
                        <div class="stat-label">关注</div>
                    </div>
                    <div class="stat-item">
                        <div class="stat-value">1.2k</div>
                        <div class="stat-label">粉丝</div>
                    </div>
                    <div class="stat-item">
                        <div class="stat-value">368</div>
                        <div class="stat-label">动态</div>
                    </div>
                    <div class="stat-item">
                        <div class="stat-value">54</div>
                        <div class="stat-label">收藏</div>
                    </div>
                </div>
            </div>
            
            <div class="vip-privileges">
                <div class="privilege-tag">
                    <i class="fas fa-star"></i> 会员有效期至2024.12.31
                </div>
                <div class="privilege-tag">
                    <i class="fas fa-shield-alt"></i> 专属客服
                </div>
                <div class="privilege-tag">
                    <i class="fas fa-gift"></i> 每月礼包
                </div>
                <div class="privilege-tag">
                    <i class="fas fa-image"></i> 高清头像
                </div>
                <div class="privilege-tag">
                    <i class="fas fa-plus-circle"></i> 更多特权
                </div>
            </div>
        </div>
    </div>
    
    <!-- 导航菜单 -->
    <div class="nav-tabs">
        <a href="#" class="nav-tab active">首页</a>
        <a href="#" class="nav-tab">动态</a>
        <a href="#" class="nav-tab">关注</a>
        <a href="#" class="nav-tab">消息</a>
        <a href="#" class="nav-tab">会员中心</a>
    </div>
    
    <!-- 内容区域 -->
    <div class="content-container">
        <!-- 快捷功能区 -->
        <div class="quick-actions">
            <div class="section-title">
                <div class="title-text">快捷功能</div>
            </div>
            <div class="actions-grid">
                <a href="#" class="action-item">
                    <div class="action-icon" style="background-color: #FFE5E5; color: #FF6B6B;">
                        <i class="fas fa-pen"></i>
                    </div>
                    <div class="action-label">发布</div>
                </a>
                <a href="#" class="action-item">
                    <div class="action-icon" style="background-color: #E5F0FF; color: #4A90E2;">
                        <i class="fas fa-compass"></i>
                    </div>
                    <div class="action-label">发现</div>
                </a>
                <a href="#" class="action-item">
                    <div class="action-icon" style="background-color: #E5FFEA; color: #5CB85C;">
                        <i class="fas fa-calendar-alt"></i>
                    </div>
                    <div class="action-label">活动</div>
                </a>
                <a href="#" class="action-item">
                    <div class="action-icon" style="background-color: #FFF3E5; color: #F5A623;">
                        <i class="fas fa-shopping-bag"></i>
                    </div>
                    <div class="action-label">商城</div>
                </a>
                <a href="#" class="action-item">
                    <div class="action-icon" style="background-color: #E5E5FF; color: #7B61FF;">
                        <i class="fas fa-users"></i>
                    </div>
                    <div class="action-label">群组</div>
                </a>
                <a href="#" class="action-item">
                    <div class="action-icon" style="background-color: #FFE5F5; color: #D770AD;">
                        <i class="fas fa-gift"></i>
                    </div>
                    <div class="action-label">福利</div>
                </a>
                <a href="#" class="action-item">
                    <div class="action-icon" style="background-color: #E5FFFC; color: #4ECDC4;">
                        <i class="fas fa-bookmark"></i>
                    </div>
                    <div class="action-label">收藏</div>
                </a>
                <a href="#" class="action-item">
                    <div class="action-icon" style="background-color: #FFEFE5; color: #F57C00;">
                        <i class="fas fa-ellipsis-h"></i>
                    </div>
                    <div class="action-label">更多</div>
                </a>
            </div>
        </div>
        
        <!-- 会员专享内容 -->
        <div class="vip-content">
            <div class="section-title">
                <div class="title-text">会员专享</div>
                <a href="#" class="title-action">查看全部</a>
            </div>
            
            <div class="content-banner">
                <img src="https://picsum.photos/id/1060/800/300" alt="会员活动" class="img-fluid">
            </div>
            
            <div class="vip-benefits">
                <div class="benefit-item">
                    <div class="benefit-icon">
                        <i class="fas fa-camera"></i>
                    </div>
                    <div class="benefit-text">免费高清滤镜库</div>
                </div>
                <div class="benefit-item">
                    <div class="benefit-icon">
                        <i class="fas fa-cloud-upload-alt"></i>
                    </div>
                    <div class="benefit-text">10GB云存储空间</div>
                </div>
                <div class="benefit-item">
                    <div class="benefit-icon">
                        <i class="fas fa-ad"></i>
                    </div>
                    <div class="benefit-text">无广告体验</div>
                </div>
                <div class="benefit-item">
                    <div class="benefit-icon">
                        <i class="fas fa-ticket-alt"></i>
                    </div>
                    <div class="benefit-text">活动优先参与权</div>
                </div>
            </div>
        </div>
        
        <!-- 推荐关注 -->
        <div class="recommendations">
            <div class="section-title">
                <div class="title-text">为你推荐</div>
                <a href="#" class="title-action">换一批</a>
            </div>
            
            <div class="user-grid">
                <div class="user-card">
                    <img src="https://picsum.photos/id/65/200/200" alt="用户头像" class="user-card-avatar">
                    <div class="user-card-name">李摄影</div>
                    <div class="user-card-meta">摄影 · 1.5k粉丝</div>
                    <button class="follow-btn">关注</button>
                </div>
                
                <div class="user-card">
                    <img src="https://picsum.photos/id/66/200/200" alt="用户头像" class="user-card-avatar">
                    <div class="user-card-name">王美食家</div>
                    <div class="user-card-meta">美食 · 2.3k粉丝</div>
                    <button class="follow-btn">关注</button>
                </div>
                
                <div class="user-card">
                    <img src="https://picsum.photos/id/67/200/200" alt="用户头像" class="user-card-avatar">
                    <div class="user-card-name">赵旅行</div>
                    <div class="user-card-meta">旅行 · 3.7k粉丝</div>
                    <button class="follow-btn following">已关注</button>
                </div>
            </div>
        </div>
        
        <!-- 会员活动 -->
        <div class="events">
            <div class="section-title">
                <div class="title-text">近期活动</div>
                <a href="#" class="title-action">更多活动</a>
            </div>
            
            <div class="events-slider">
                <div class="event-card">
                    <img src="https://picsum.photos/id/301/400/200" alt="活动图片" class="event-image">
                    <div class="event-info">
                        <div class="event-title">会员专属摄影技巧分享会</div>
                        <div class="event-date">
                            <i class="far fa-calendar-alt"></i> 6月15日 19:00
                        </div>
                    </div>
                </div>
                
                <div class="event-card">
                    <img src="https://picsum.photos/id/431/400/200" alt="活动图片" class="event-image">
                    <div class="event-info">
                        <div class="event-title">美食达人线下品鉴会</div>
                        <div class="event-date">
                            <i class="far fa-calendar-alt"></i> 6月20日 14:30
                        </div>
                    </div>
                </div>
                
                <div class="event-card">
                    <img src="https://picsum.photos/id/429/400/200" alt="活动图片" class="event-image">
                    <div class="event-info">
                        <div class="event-title">夏季旅行目的地推荐沙龙</div>
                        <div class="event-date">
                            <i class="far fa-calendar-alt"></i> 6月25日 15:00
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 底部导航 -->
    <div class="bottom-nav">
        <a href="#" class="bottom-nav-item active">
            <div class="bottom-nav-icon">
                <i class="fas fa-home"></i>
            </div>
            <div class="bottom-nav-label">首页</div>
        </a>
        <a href="#" class="bottom-nav-item">
            <div class="bottom-nav-icon">
                <i class="fas fa-compass"></i>
            </div>
            <div class="bottom-nav-label">发现</div>
        </a>
        <a href="#" class="bottom-nav-item">
            <div class="bottom-nav-icon" style="width: 40px; height: 40px; border-radius: 50%; background-color: var(--primary); color: white; display: flex; align-items: center; justify-content: center; margin-top: -15px;">
                <i class="fas fa-plus"></i>
            </div>
        </a>
        <a href="#" class="bottom-nav-item">
            <div class="bottom-nav-icon">
                <i class="far fa-bell"></i>
            </div>
            <div class="bottom-nav-label">通知</div>
        </a>
        <a href="#" class="bottom-nav-item">
            <div class="bottom-nav-icon">
                <i class="far fa-user"></i>
            </div>
            <div class="bottom-nav-label">我的</div>
        </a>
    </div>
    
    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 导航标签切换
        const navTabs = document.querySelectorAll('.nav-tab');
        navTabs.forEach(tab => {
            tab.addEventListener('click', function(e) {
                e.preventDefault();
                
                // 移除所有激活状态
                navTabs.forEach(t => t.classList.remove('active'));
                
                // 添加当前激活状态
                this.classList.add('active');
            });
        });
        
        // 底部导航切换
        const bottomNavItems = document.querySelectorAll('.bottom-nav-item');
        bottomNavItems.forEach(item => {
            if (!item.querySelector('.fas-plus')) { // 排除中间的发布按钮
                item.addEventListener('click', function(e) {
                    e.preventDefault();
                    
                    // 移除所有激活状态
                    bottomNavItems.forEach(i => i.classList.remove('active'));
                    
                    // 添加当前激活状态
                    this.classList.add('active');
                });
            }
        });
        
        // 关注按钮切换
        const followBtns = document.querySelectorAll('.follow-btn');
        followBtns.forEach(btn => {
            btn.addEventListener('click', function() {
                if (this.classList.contains('following')) {
                    this.classList.remove('following');
                    this.textContent = '关注';
                } else {
                    this.classList.add('following');
                    this.textContent = '已关注';
                }
            });
        });
        
        // 发布按钮点击事件
        document.querySelector('.bottom-nav-icon .fas-plus').parentElement.addEventListener('click', function() {
            alert('打开发布选项：发布动态、上传图片、发起活动...');
        });
        
        // 编辑资料按钮点击
        document.querySelector('.btn-edit').addEventListener('click', function() {
            alert('进入资料编辑页面');
        });
        
        // 设置按钮点击
        document.querySelector('.btn-settings').addEventListener('click', function() {
            alert('打开设置页面');
        });
    </script>
</body>
</html>
